import httpInstance from "@/utils/http"
// import { url } from "inspector"


// const querySearch={
//   businessType:'string',
//   projectEmpld:'string',
//   projectName:'string',
//   statusCategory:'string',
//   // createTime:'string',
//   page:'string',
//   size:'string',
//   sort:'string',
// }

//查询
export const getData = () => {
  return httpInstance({
    url: '/invest/projectInfo',
  })
}

//增
export const onAdd = (data: any) => {
  return httpInstance({
    url: '/invest/projectInfo',
    method: 'POST',
    data
  })
}

//删
export const onDelete = (ids: any) => {
  return httpInstance({
    url: `/invest/projectInfo/${ids}`,
    method: 'delete',
  })
}


//改

export const onChange = (data: any) => {
  return httpInstance({
    url: `/invest/projectInfo/${data.id}`,
    method: 'put',
    data
  })
}

//导出
export const Export = () => {
  return httpInstance({
    url: '/invest/projectInfo/export',

  })
}
//经理id
export const getManagerId = () => {
  return httpInstance({
    url: '/emp/emp/get',
    method: 'get'
  })
}